<?php
use Symfony\Component\HttpKernel\Controller\ControllerReference;
echo $view['actions']->render(new ControllerReference('CAIHistoricoBundle:Index:header'));
?>

		<div class="container-fluid">
			<div class="row">
			<div class="col-md-4">
			<div class="panel panel-default">
		 		<div class="panel-heading">
		    		<h3 class="panel-title"><span class="glyphicon glyphicon-pencil"></span> Complete el formulario para ingresar una nueva instancia de torneo</h3>
		  		</div>
		  		<div class="panel-body">
		    		
		    		<?php echo $view['form']->start($formTorneoInstancia, array('attr' => array('id' => 'formTorneoInstancia', 
		    																	 'class' => 'form-horizontal', 
		    																	 'role' => 'form')));?>
						<div class="form-group">
							<label class="col-md-3 control-label">Nombre</label>
					    	<div class="col-md-6">
						    	<?php echo $view['form']->row($formTorneoInstancia['torneosInstanciasNombre'], array('attr' => array('class' => 'form-control'), 'label' => false));?>
					    	</div>
						</div>
						<div class="form-group">
					    	<label class="col-md-3 control-label">Año</label>
					    	<div class="col-md-6">
					        	<?php echo $view['form']->row($formTorneoInstancia['torneosInstanciasAnio'], array('attr' => array('class' => 'form-control'), 'label' => false));?>
					        </div>
					    </div>
					    <div class="form-group">
					    	<label class="col-md-3 control-label">Torneo</label>
					    	<div class="col-md-6">
					        	<?php echo $view['form']->row($formTorneoInstancia['torneo'], array('attr' => array('class' => 'form-control'), 'label' => false));?>
					        </div>
					    </div>
					    <div class="form-group">
					    	<label class="col-md-3 control-label">Ubicación</label>
					    	<div class="col-md-6">
					    		<?php echo $view['form']->row($formTorneoInstancia['torneosInstanciasUbicacion'], array('attr' => array('class' => 'form-control'), 'label' => false));?>
					        </div>
					    </div>
					<?php echo $view['form']->end($formTorneoInstancia) ?>
						<button class="btn btn-default" type="button" onclick="guardarTorneoInstancia()">Guardar Instancia</button>
		  		</div>
			</div>
			</div>
			<div id="torneoGuardadoOk" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			  <div class="modal-dialog">
			    <div class="modal-content panel-info">
			      <div class="modal-header panel-heading">
			        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
			        <h4 class="modal-title" id="torneoGuardadoOkLabel">Guardar torneo instancia</h4>
			      </div>
			      <div class="modal-body" id="torneoGuardadoOkHTML">
			        
			      </div>
			    </div>
			  </div>
			</div>
			<div class="col-md-4">
				<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title"><span class="glyphicon glyphicon-pencil"></span> Complete el formulario para ingresar un nuevo torneo</h3>
				</div>
				<div class="panel-body">
					<?php echo $view['form']->start($formTorneo, array('attr' => array('id' => 'formTorneo', 
		    																	 'class' => 'form-horizontal', 
		    																	 'role' => 'form')));?>
		    		
		    		<div class="form-group">
						<label class="col-md-3 control-label">Nombre</label>
				    	<div class="col-md-6">
					    	<?php echo $view['form']->row($formTorneo['torneosNombre'], array('attr' => array('class' => 'form-control'), 'label' => false));?>
				    	</div>
					</div>
					<div class="form-group">
				    	<label class="col-md-3 control-label">Tipo</label>
				    	<div class="col-md-6">
				        	<?php echo $view['form']->row($formTorneo['torneosTipo'], array('attr' => array('class' => 'form-control'), 'label' => false));?>
				        </div>
				    </div>
		    		
		    		<?php echo $view['form']->end($formTorneo) ?>
					<button class="btn btn-default" type="button" onclick="guardarTorneo()">Guardar Torneo</button>
				</div>
			</div>
			</div>
			<div class="col-md-4">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title"><span class="glyphicon glyphicon-search"></span> Historial por torneo</h3>
				</div>
				<div class="panel-body">
				hola que tal
				</div>
			</div>
			</div>
		</div>
<?php echo $view->render('CAIHistoricoBundle:Default:bootstrap.footer.html.php'); ?>